package com.example.news.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @TableName search_records
 */
@TableName(value ="search_records")
@Data
public class SearchRecords implements Serializable {
    @TableId
    private Integer id;

    private Integer userId;

    private String searchQuery;
    @TableField(fill = FieldFill.INSERT) //创建时自动填充
    private Date createTime;

    @Serial
    private static final long serialVersionUID = 1L;
}